//
//  SecretViewController.m
//  kuimi
//
//  Created by guozhou-MAC001 on 15/9/14.
//  Copyright (c) 2015年 guozhou-MAC001. All rights reserved.
//

#import "SecretViewController.h"
#import "MYpointNOimgTableViewcell.h"
#import "MYpointTableViewCell.h"
@interface SecretViewController ()<UITableViewDataSource,UITableViewDelegate>

@end

@implementation SecretViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}
-(void)viewWillAppear:(BOOL)animated
{
   
    [self.SecretTable registerNib:[UINib nibWithNibName:@"MYpointTableViewCell" bundle:nil] forCellReuseIdentifier:@"cell"];
        [self.SecretTable registerNib:[UINib nibWithNibName:@"MYpointNOimgTableViewcell" bundle:nil] forCellReuseIdentifier:@"cell2"];
    
    self.SecretTable.estimatedRowHeight = 44.0f;
    self.SecretTable.rowHeight = UITableViewAutomaticDimension;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
# pragma -表单代理
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row%2==0) {
        MYpointNOimgTableViewcell *cell=[tableView dequeueReusableCellWithIdentifier:@"cell2" forIndexPath:indexPath];
        cell.selectionStyle=UITableViewCellSelectionStyleNone;
     
        return cell;
    }
    else
    {
        MYpointTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
           cell.selectionStyle=UITableViewCellSelectionStyleNone;
        return cell;
    }
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
